﻿using GuiSearcher.Enums;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace GuiSearcher.Views {
    /// <summary>
    /// Interaction logic for ComboTextBox.xaml
    /// </summary>
    public partial class ComboTextBox : UserControl {
        public ComboTextBox() {
            InitializeComponent();
        }


        /// <summary>
        /// The <see cref="SearchModes" /> dependency property's name.
        /// </summary>
        public const string SearchModesPropertyName = "SearchModes";

        /// <summary>
        /// Gets or sets the value of the <see cref="SearchModes" />
        /// property. This is a dependency property.
        /// </summary>
        public Dictionary<SearchModeEnum, string> SearchModes {
            get {
                return (Dictionary<SearchModeEnum, string>)GetValue(SearchModesProperty);
            }
            set {
                SetValue(SearchModesProperty, value);
            }
        }

        /// <summary>
        /// Identifies the <see cref="SearchModes" /> dependency property.
        /// </summary>
        public static readonly DependencyProperty SearchModesProperty = DependencyProperty.Register(
            SearchModesPropertyName,
            typeof(Dictionary<SearchModeEnum, string>),
            typeof(ComboTextBox),
            new UIPropertyMetadata(null));


        /// <summary>
        /// The <see cref="Text" /> dependency property's name.
        /// </summary>
        public const string TextPropertyName = "Text";

        /// <summary>
        /// Gets or sets the value of the <see cref="Text" />
        /// property. This is a dependency property.
        /// </summary>
        public string Text {
            get {
                return (string)GetValue(TextProperty);
            }
            set {
                SetValue(TextProperty, value);
            }
        }

        /// <summary>
        /// Identifies the <see cref="Text" /> dependency property.
        /// </summary>
        public static readonly DependencyProperty TextProperty = DependencyProperty.Register(
            TextPropertyName,
            typeof(string),
            typeof(ComboTextBox),
            new UIPropertyMetadata(string.Empty));

        /// <summary>
        /// The <see cref="SelectedSearchMode" /> dependency property's name.
        /// </summary>
        public const string SelectedSearchModePropertyName = "SelectedSearchMode";

        /// <summary>
        /// Gets or sets the value of the <see cref="SelectedSearchMode" />
        /// property. This is a dependency property.
        /// </summary>
        public SearchModeEnum SelectedSearchMode {
            get {
                return (SearchModeEnum)GetValue(SelectedSearchModeProperty);
            }
            set {
                SetValue(SelectedSearchModeProperty, value);
            }
        }

        /// <summary>
        /// Identifies the <see cref="SelectedSearchMode" /> dependency property.
        /// </summary>
        public static readonly DependencyProperty SelectedSearchModeProperty = DependencyProperty.Register(
            SelectedSearchModePropertyName,
            typeof(SearchModeEnum),
            typeof(ComboTextBox),
            new UIPropertyMetadata(null));





    }
}
